package com.roc.template.mongo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @ClassName User
 * @Description: TODO
 * @Author Administrator
 * @Date 2020/7/15 16 53
 * @Version V1.0
 **/
@Data
@Document(collection = "user")
@ApiModel(value = "用户表")
public class User {

    @Id
    private String id;
    @ApiModelProperty(value="用户名称")
    private String userName;
    @ApiModelProperty(value="密码")
    private String passWord;

    @CreatedDate
    private Date createTime;

    private boolean isDelete = false;
}
